package com.guigu.xiaowenbo.mapper;

import com.guigu.xiaowenbo.pojo.Sgatherdetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SgatherdetailsMapper {
   int insertsgd(Sgatherdetails sgatherdetails);
   List<Sgatherdetails> selectsgd(Integer parentid);
   List<Sgatherdetails> selectsgddd(Integer parentid);
   Sgatherdetails selectsgdp(@Param("parentid") Integer parentid, @Param("productid") String productid);
   int updatesgd(@Param("parentid") Integer parentid, @Param("productid") String productid);
   List<Sgatherdetails> selectsgdrs(Integer parentid);
   int updatesgdrs(@Param("parentid") Integer parentid, @Param("productid") String productid, @Param("gatheredamount") Integer gatheredamount);
   int updatesgdrses(@Param("parentid") Integer parentid, @Param("productid") String productid, @Param("gatheredamounts") Integer gatheredamounts);

   int insert_WZY(Sgatherdetails record);

}